package com.school.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class Order {
    private Long orderId;
    private String orderNo;
    private Long userId;
    private int totalPrice;
    private Byte payStatus;
    private Byte payType;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date payTime;
    private Byte orderStatus;
    private String extraInfo;
    private String userName;
    private String userPhone;
    private String userAddress;
    private Byte isDeleted;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    public Order() {
    }

    public Order(Long orderId, String orderNo, Long userId, int totalPrice, Byte payStatus, Byte payType, Date payTime, Byte orderStatus, String extraInfo, String userName, String userPhone, String userAddress, Byte isDeleted, Date createTime, Date updateTime) {
        this.orderId = orderId;
        this.orderNo = orderNo;
        this.userId = userId;
        this.totalPrice = totalPrice;
        this.payStatus = payStatus;
        this.payType = payType;
        this.payTime = payTime;
        this.orderStatus = orderStatus;
        this.extraInfo = extraInfo;
        this.userName = userName;
        this.userPhone = userPhone;
        this.userAddress = userAddress;
        this.isDeleted = isDeleted;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    /**
     * 获取
     * @return orderId
     */
    public Long getOrderId() {
        return orderId;
    }

    /**
     * 设置
     * @param orderId
     */
    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    /**
     * 获取
     * @return orderNo
     */
    public String getOrderNo() {
        return orderNo;
    }

    /**
     * 设置
     * @param orderNo
     */
    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    /**
     * 获取
     * @return userId
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * 设置
     * @param userId
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * 获取
     * @return totalPrice
     */
    public int getTotalPrice() {
        return totalPrice;
    }

    /**
     * 设置
     * @param totalPrice
     */
    public void setTotalPrice(int totalPrice) {
        this.totalPrice = totalPrice;
    }

    /**
     * 获取
     * @return payStatus
     */
    public Byte getPayStatus() {
        return payStatus;
    }

    /**
     * 设置
     * @param payStatus
     */
    public void setPayStatus(Byte payStatus) {
        this.payStatus = payStatus;
    }

    /**
     * 获取
     * @return payType
     */
    public Byte getPayType() {
        return payType;
    }

    /**
     * 设置
     * @param payType
     */
    public void setPayType(Byte payType) {
        this.payType = payType;
    }

    /**
     * 获取
     * @return payTime
     */
    public Date getPayTime() {
        return payTime;
    }

    /**
     * 设置
     * @param payTime
     */
    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    /**
     * 获取
     * @return orderStatus
     */
    public Byte getOrderStatus() {
        return orderStatus;
    }

    /**
     * 设置
     * @param orderStatus
     */
    public void setOrderStatus(Byte orderStatus) {
        this.orderStatus = orderStatus;
    }

    /**
     * 获取
     * @return extraInfo
     */
    public String getExtraInfo() {
        return extraInfo;
    }

    /**
     * 设置
     * @param extraInfo
     */
    public void setExtraInfo(String extraInfo) {
        this.extraInfo = extraInfo;
    }

    /**
     * 获取
     * @return userName
     */
    public String getUserName() {
        return userName;
    }

    /**
     * 设置
     * @param userName
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * 获取
     * @return userPhone
     */
    public String getUserPhone() {
        return userPhone;
    }

    /**
     * 设置
     * @param userPhone
     */
    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    /**
     * 获取
     * @return userAddress
     */
    public String getUserAddress() {
        return userAddress;
    }

    /**
     * 设置
     * @param userAddress
     */
    public void setUserAddress(String userAddress) {
        this.userAddress = userAddress;
    }

    /**
     * 获取
     * @return isDeleted
     */
    public Byte getIsDeleted() {
        return isDeleted;
    }

    /**
     * 设置
     * @param isDeleted
     */
    public void setIsDeleted(Byte isDeleted) {
        this.isDeleted = isDeleted;
    }

    /**
     * 获取
     * @return createTime
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取
     * @return updateTime
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置
     * @param updateTime
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String toString() {
        return "Order{orderId = " + orderId + ", orderNo = " + orderNo + ", userId = " + userId + ", totalPrice = " + totalPrice + ", payStatus = " + payStatus + ", payType = " + payType + ", payTime = " + payTime + ", orderStatus = " + orderStatus + ", extraInfo = " + extraInfo + ", userName = " + userName + ", userPhone = " + userPhone + ", userAddress = " + userAddress + ", isDeleted = " + isDeleted + ", createTime = " + createTime + ", updateTime = " + updateTime + "}";
    }
}